/**
 * Created by zaranengap on 2017/7/3.
 */
import {cac} from 'share/utils'

export const SET_USER = 'SET_USER'
export const SET_LOGIN_USER = 'SET_LOGIN_USER'
export const SET_PROFILE = 'SET_PROFILE'
export const SET_LOGIN_PROFILE = 'SET_LOGIN_PROFILE';
export const SET_COMPANY = 'SET_COMPANY'
export const SET_DOCUMENTARY_COMPANY = 'SET_DOCUMENTARY_COMPANY'
export const SET_LOGIN_COMPANY = 'SET_LOGIN_COMPANY'
export const SET_TENANT = 'SET_TENANT'
export const SET_TENANTPROFILE ='SET_TENANTPROFILE'
export const SET_USER_ORGANIZATION = 'SET_USER_ORGANIZATION'
export const SET_COMPANY_CONFIGURATION = 'SET_COMPANY_CONFIGURATION'
export const SET_USER_PERMISSION = 'SET_USER_PERMISSION';
export const SET_USER_PERMISSION_ALL_MENUS = 'SET_USER_PERMISSION_ALL_MENUS';
export const SET_NEW_PERMISSION_SORTED_MENUS = 'SET_NEW_PERMISSION_SORTED_MENUS';
export const SET_IS_OLD_COMPANY = 'SET_IS_OLD_COMPANY'
export const SET_LANGUAGE_LIST = 'SET_LANGUAGE_LIST'
export const SET_SETTING_STATUS = 'SET_SETTING_STATUS';
export const SET_VOICE_CODE_ENABLE = 'SET_VOICE_CODE_ENABLE';
export const SET_LOGIN_OPTIONS = 'SET_LOGIN_OPTIONS';
export const SET_OPTIONS = 'SET_OPTIONS';

export const setUser = cac(SET_USER, 'user')
export const setLoginUser = cac(SET_LOGIN_USER, 'loginUser')
export const setProfile = cac(SET_PROFILE, 'profile')
export const setLoginProfile = cac(SET_LOGIN_PROFILE, 'loginProfile')
export const setTenantProfile = cac(SET_TENANTPROFILE, 'tenantProfile')
export const setCompany = cac(SET_COMPANY, 'company')
export const setLoginCompany = cac(SET_LOGIN_COMPANY, 'loginCompany')
//单据所属人公司
export const setDocumentaryCompany = cac(SET_DOCUMENTARY_COMPANY, 'documentaryCompany')
export const setTenant = cac(SET_TENANT, 'tenant')
export const setUserOrganization = cac(SET_USER_ORGANIZATION, 'organization')
export const setCompanyConfiguration = cac(SET_COMPANY_CONFIGURATION, 'companyConfiguration')
export const setUserPermission = cac(SET_USER_PERMISSION, 'userPermission');
export const setUserPermissionAllMenus = cac(SET_USER_PERMISSION_ALL_MENUS, 'userPermissionAllMenus');
export const setNewPermissionSortedMenus = cac(SET_NEW_PERMISSION_SORTED_MENUS, 'newPermissionSortedMenus');//新权限下的排序后的菜单
export const setIsOldCompany = cac(SET_IS_OLD_COMPANY, 'isOldCompany')
export const setLanguageList = cac(SET_LANGUAGE_LIST, 'languageList')
export const setSettingStatus = cac(SET_SETTING_STATUS, 'settingStatus')
export const setVoiceCodeEnable = cac(SET_VOICE_CODE_ENABLE, 'voiceCodeEnable')
export const setLoginOptions = cac(SET_LOGIN_OPTIONS, 'loginOptions')
export const setOptions = cac(SET_OPTIONS, 'options')
